Skip to content

Conversation

randyheydon
Copy link
Contributor

Fixes #3969. Notification events can now have title or body as empty strings or undefined without errors. Tested using the below notification messages sent from console. Prior to this commit, all but the two marked test messages created errors. Also tested with actual task notifications from Android.

GB({"t":"notify", "id":987123, "title":"Title"})
GB({"t":"notify", "id":987124, "title":"Title", "body":""})
GB({"t":"notify", "id":987125, "body":"Body"})
GB({"t":"notify", "id":987126, "title":"", "body":"Body"}) // worked before this commit
GB({"t":"notify", "id":987127, "title":""})
GB({"t":"notify", "id":987128, "body":""})
GB({"t":"notify", "id":987129}) // does nothing

Fixes espruino#3969.  Notification events can now have title or body as empty strings
or `undefined` without errors.  Tested from console using the below
notification messages sent from console.  Prior to this commit, all but the
two marked test messages created errors.

GB({"t":"notify", "id":987123, "title":"Title"})
GB({"t":"notify", "id":987124, "title":"Title", "body":""})
GB({"t":"notify", "id":987125, "body":"Body"})
GB({"t":"notify", "id":987126, "title":"", "body":"Body"}) // worked before this commit
GB({"t":"notify", "id":987127, "title":""})
GB({"t":"notify", "id":987128, "body":""})
GB({"t":"notify", "id":987129}) // does nothing
@bobrippling bobrippling merged commit a252d71 into espruino:master Aug 25, 2025
1 check passed
@randyheydon randyheydon deleted the messagegui_3969 branch August 26, 2025 00:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[messagegui] Blank on task items with short titles
2 participants